import { getToken } from '@/utils/storage'

export default {
  namespaced: true,
  state () {
    return {
      token: getToken(),
      userInfo: {}
    }
  },
  mutations: {
    userInfo (state, info) {
      state.userInfo = info.user
    }

  }

}
